package com.yami.shop.api.controller;


import com.yami.shop.bean.model.VrScene;
import com.yami.shop.common.response.ServerResponseEntity;
import com.yami.shop.service.VrSceneService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author SJL
 * @date 2021-02-20 09:44:42
 */
@RestController
@AllArgsConstructor
@RequestMapping("/vrScene")
@Tag(name = "场景配置接口")
public class VrSceneController {

    private final VrSceneService vrSceneService;

    @GetMapping("/getInfo/{id}")
    public ServerResponseEntity<VrScene> getInfo(@PathVariable("id") Long id){
        VrScene infoById = vrSceneService.getInfoById(id);
        return ServerResponseEntity.success(infoById);
    }
}
